#ifndef IMAGE_H
#define IMAGE_H

#include "widget.h"
#include "../animations/opening_rect.h"
#include "../animations/color_transition.h"

#include <QImage>

class Image: public Widget
{

public:

    Image( Widget* _parent, Engine* _engine,
              int _x, int _y, int _w, int _h, QImage* img );
    virtual ~Image( void );

protected:

    /*
    virtual void doShow( void );
    virtual void doHide( void );
    */

    virtual void Paint( QPainter &painter );

    /*
    virtual void OnPause(Animation* a);
    virtual void OnStop(Animation* a);
    virtual void OnEnd(Animation* a);
    virtual void OnPlay(Animation* a);
    */

private:

    QImage* img;

};

#endif // IMAGE_H
